package com.qsw.extendedittext.test;

import android.app.Activity;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;

import com.qsw.extendedittext.R;
import com.qsw.extendedittext.view.DivideEditText;
import com.qsw.extendedittext.view.DivideEditView;
import com.qsw.extendedittext.view.listener.OnInputCheckSuccessListener;

public class DETTestActivity extends Activity {

    private DivideEditText mDetPhone;

    private DivideEditView mDevPhone;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.eet_activity_test);

        mDetPhone = findViewById(R.id.det_phone_input);
        mDetPhone.setTextSize(20);
        mDetPhone.setTextColor(Color.RED);
        mDetPhone.setOnInputCheckSuccessListener(new OnInputCheckSuccessListener() {
            @Override
            public void onInputCheckSuccess(String str) {
                Log.d("aaaaaa", "完成1：" + str);
            }
        });
        mDetPhone.setText("12345678901");

        mDevPhone = findViewById(R.id.dev_phone_input);
        mDevPhone.setStrokeWidth(2);
        mDevPhone.setStrokeColor(Color.GREEN);
        mDevPhone.setSolidColor(Color.BLACK);
        mDevPhone.setRadius(5);
        mDevPhone.setTextSize(40);
        mDevPhone.setTextColor(Color.RED);
        mDevPhone.setDivideWidth(5);
        mDevPhone.setOnInputCheckSuccessListener(new OnInputCheckSuccessListener() {
            @Override
            public void onInputCheckSuccess(String str) {
                Log.d("aaaaaa", "完成2：" + str);
            }
        });
    }
}
